import request from '@/router/axios'
import {getQianxiangType, getStationName} from "../commonCheck";

export function getTvmTicketCYXCList(query) {
  return request({
    url: '/check/check/getTvmTicketCYXCList',
    method: 'post',
    params: query
  })
}

/**
 * 显示分钱箱信息
 * @param query
 */
export function getSwAuTvmBoxAmountDifference(query) {
  return request({
    url: '/check/check/getSwAuTvmBoxAmountDifference',
    method: 'post',
    params: query,
    data: query
  })
}

/**
 * 修改替换票款差异分钱箱信息数据
 * @param query
 */
export function updateSwAuTvmBoxAmountDifference(query) {
  return request({
    url: '/check/check/updateSwAuTvmBoxAmountDifference',
    method: 'post',
    params: query
  })
}

/**
 * 票款差异下发功能
 * @param query
 */
export function sendStatusTvmTicketCYXC(query) {
  return request({
    url: '/check/check/sendStatusTvmTicketCYXC',
    method: 'post',
    data: query
    //params: query
  })
}

//删除
export function delBatch(id) {
  return request({
    url: '/check/check/batchCashBoxDel' ,
    method: 'delete',
    data:id
  })
}

export const cols1=[{
  label: '钱箱类型',
  prop: "boxCashType",
  formslot: true,
  formatter :function(row, value , label, column){
    return getQianxiangType(value);
  },
},
  // {
  //   label: '钱箱编号',
  //   prop: "cashBoxCode",
  //   formslot: true,
  // },
  {
    width: 120,
    label: '系统金额',
    prop: "systemMoney",
    formslot: true,
    //hide:true
  },
  {
    width: 120,
    label: '协查系统金额',
    prop: "replyDsiplayMoney",
    formslot: true,
    //hide:true
  },
  {
    width: 120,
    label: '系统金额差异',
    prop: "unloadDisplayMoneyDiff",
    formslot: true,
    hide: true,
  },
  {
    width: 120,
    label: '实点金额',
    prop: "actualMoney",
    formslot: true,
  },
  {
    width: 120,
    label: '差异金额',
    prop: "replyActualMoney",
    formslot: true,
  },
  {
    width: 120,
    label: '实点金额差异',
    prop: "actualMoneyReplyActualMoney",
    formslot: true,
    hide: true
  },
  //
  // {
  //   label: '录入补卸载金额',
  //   prop: "lineCode",
  //   formslot: true,
  // },
  // {
  //   label: '回馈补卸载金额',
  //   prop: "lineCode",
  //   formslot: true,
  // },
  // {
  //   label: '补卸载金额差异',
  //   prop: "lineCode",
  //   formslot: true,
  // },
  {
    width: 120,
    label: '补币金额',
    prop: "supplementMoney",
    formslot: true,
  },
  {
    width: 120,
    label: '协查补币金额',
    prop: "replySupplementMoney",
    formslot: true
  },
  {
    width: 120,
    label: '补币金额差异',
    prop: "supplementMoneyreplySupplementMoney",
    formslot: true,
    hide:true
  },
  {
    width: 160,
    label: '录入手工清出金额',
    prop: "handOutMoney",
    formslot: true,
    hide:true
  },
  {
    width: 160,
    label: '协查手工清出金额',
    prop: "replyHandOutMoney",
    formslot: true,
    hide:true
  },
  {
    width: 160,
    label: '手工清出差异金额',
    prop: "handOutMoneyreplyHandOutMoney",
    formslot: true,
    hide:true
  }]



export const cols2=[{
  width: 120,
  label: '协查售票金额',
  prop: "lineCode",
  formslot: true,
},
  {

    width: 120,
    label: '回馈售票金额',
    prop: "lineCode",
    formslot: true,
  },
  {
    width: 120,
    label: '售票差异金额',
    prop: "lineCode",
    formslot: true,
  },{
    width: 120,
    label: '协查充值金额',
    prop: "lineCode",
    formslot: true,
  },
  {
    width: 120,
    label: '回馈充值金额',
    prop: "lineCode",
    formslot: true,
  },{
    width: 120,
    label: '充值差异金额',
    prop: "lineCode",
    formslot: true,
  },
  {
    width: 120,
    label: '协查退款金额',
    prop: "lineCode",
    formslot: true,
  },
  {
    width: 120,
    label: '回馈退款金额',
    prop: "lineCode",
    formslot: true,
  },
  {
    width: 120,
    label: '退款差异金额',
    prop: "lineCode",
    formslot: true,
  }]

